﻿<?
//======================================================
// Valores
//======================================================

$txtcodusuario = trim($_GET["idusuario"]);

//======================================================
//Conectar
//======================================================
include "../conexao.php";
@session_start(); // Inicializa a sessão
connect();
//======================================================
//Inserir
//======================================================
if ($_GET[excluir] == "excluir")
{
$consulta = "DELETE FROM usuario WHERE id_usuario='$txtcodusuario'";
				mysql_query("SET NAMES 'utf8'");
				mysql_query('SET character_set_connection=utf8');
				mysql_query('SET character_set_client=utf8');
				mysql_query('SET character_set_results=utf8');			
$resultado = mysql_query($consulta);  
include "validaerrobanco.php";

?>
<script language="JavaScript">
alert ("Salvo");
</script>
<script language="JavaScript">
  window.location.assign("../listagemusuarios.php");
</script>
<?
}
?>

